import Layout                  from "@/layout/index.vue"
import { createNameComponent } from "../createNode"

const route = [
    {
        path     : "/user",
        component: Layout,
        redirect : "/user/manager",
        meta     : { title: "用户", icon: "sfont system-home" },
        children : [
            {
                path     : "list",
                component: createNameComponent(() => import("@/views/main/user/list/index.vue")),
                meta     : { title: "列表", icon: "sfont system-home" },
            },
            {
                path     : "manager",
                component: createNameComponent(() => import("@/views/main/user/manager/index.vue")),
                meta     : { title: "管理", icon: "sfont system-home" },
            },
        ],
    },
]

export default route
